home *** CD-ROM | disk | FTP | other *** search
/ CICA 1995 September (Japanese) / CICA Shareware for Windows CD-ROM (Walnut Creek) (September 1995) (Japanese) (Disc 2).iso / disc2 / patches / symantec / mfcsim.exe / SIMNEW.EXE / MFC / SAMPLES / DOCTEMP / DOCUMENT.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-06  |  1.3 KB  |  74 lines

  1. // Filename: DOCUMENT.CPP                                   
  2. // CONTAINS DOCUMENT CLASS
  3.  
  4. #include "AFXWIN.H"
  5. #include "DOCTEMP.H"
  6.  
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char BASED_CODE THIS_FILE[] = __FILE__;
  10. #endif
  11.  
  12. // *************************************************************
  13. // Member Functions for Class: CMyDoc
  14. // Derived from MFC Class    : CDocument
  15. // *************************************************************
  16.  
  17. IMPLEMENT_DYNCREATE(CMyDoc, CDocument)
  18.  
  19. BEGIN_MESSAGE_MAP(CMyDoc, CDocument)
  20.  
  21. END_MESSAGE_MAP()
  22.  
  23.  
  24. CMyDoc::CMyDoc()
  25. {
  26. }
  27.  
  28. CMyDoc::~CMyDoc()
  29. {
  30. }
  31.  
  32. BOOL CMyDoc::OnNewDocument()
  33. {
  34.     if (!CDocument::OnNewDocument())
  35.         return FALSE;
  36.     // Add reinitialization code here
  37.     return TRUE;
  38. }
  39.  
  40.  
  41. // *************************************************************
  42. // CMyDoc serialization
  43. // *************************************************************
  44.  
  45. void CMyDoc::Serialize(CArchive& ar)
  46. {
  47.     if (ar.IsStoring())
  48.     {
  49.         // Add storing code here
  50.     }
  51.     else
  52.     {
  53.         // Add loading code here
  54.     }
  55. }
  56.  
  57.  
  58. // *************************************************************
  59. // CMyDoc diagnostics
  60.  
  61. #ifdef _DEBUG
  62. void CMyDoc::AssertValid() const
  63. {
  64.     CDocument::AssertValid();
  65. }
  66.  
  67. void CMyDoc::Dump(CDumpContext& dc) const
  68. {
  69.     CDocument::Dump(dc);
  70. }
  71.  
  72. #endif //_DEBUG
  73.  
  74.